package com.numberone.master.modules.profit.entity;

import org.hibernate.validator.constraints.Length;

import com.numberone.master.common.persistence.DataEntity;

/**
 * 利润Entity
 * @author chengkang
 * @version 2018-02-12
 */
public class Account extends DataEntity<Account> {
	
	private static final long serialVersionUID = 1L;
	private String accountNo;		// 代理商
	private String type;		// 账户类型01：商户，02：机构
	private String accountType;		// 01:分润账户 02:收益账户
	private String transAmt;		// 差额
	private String profitAmt;		// 陆润
	private String orderNo;		// 订单号
	private String crtDate;		// 交易日期
	private String crtTime;		// 交易时间
	private String payType;		// 状态
	private String fee;		// 机构成本费率
	private String hasFee;		// 机构利润差
	private String mchFee;		// 商户费率
	private String syncAmt;		// 提现手续费
	private String createStart;//开始时间
	private String createEnd;//结束时间
	
	public Account() {
		super();
	}

	public Account(String id){
		super(id);
	}

	@Length(min=1, max=64, message="代理商长度必须介于 1 和 64 之间")
	public String getAccountNo() {
		return accountNo;
	}

	public void setAccountNo(String accountNo) {
		this.accountNo = accountNo;
	}
	
	@Length(min=1, max=4, message="账户类型01：商户，02：机构长度必须介于 1 和 4 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=1, max=4, message="01:分润账户 02:收益账户长度必须介于 1 和 4 之间")
	public String getAccountType() {
		return accountType;
	}

	public void setAccountType(String accountType) {
		this.accountType = accountType;
	}
	
	@Length(min=0, max=12, message="差额长度必须介于 0 和 12 之间")
	public String getTransAmt() {
		return transAmt;
	}

	public void setTransAmt(String transAmt) {
		this.transAmt = transAmt;
	}
	
	@Length(min=0, max=12, message="陆润长度必须介于 0 和 12 之间")
	public String getProfitAmt() {
		return profitAmt;
	}

	public void setProfitAmt(String profitAmt) {
		this.profitAmt = profitAmt;
	}
	
	@Length(min=1, max=128, message="订单号长度必须介于 1 和 128 之间")
	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	
	@Length(min=0, max=8, message="交易日期长度必须介于 0 和 8 之间")
	public String getCrtDate() {
		return crtDate;
	}

	public void setCrtDate(String crtDate) {
		this.crtDate = crtDate;
	}
	
	@Length(min=0, max=6, message="交易时间长度必须介于 0 和 6 之间")
	public String getCrtTime() {
		return crtTime;
	}

	public void setCrtTime(String crtTime) {
		this.crtTime = crtTime;
	}
	
	@Length(min=0, max=4, message="状态长度必须介于 0 和 4 之间")
	public String getPayType() {
		return payType;
	}

	public void setPayType(String payType) {
		this.payType = payType;
	}
	
	@Length(min=0, max=10, message="机构成本费率长度必须介于 0 和 10 之间")
	public String getFee() {
		return fee;
	}

	public void setFee(String fee) {
		this.fee = fee;
	}
	
	@Length(min=0, max=10, message="机构利润差长度必须介于 0 和 10 之间")
	public String getHasFee() {
		return hasFee;
	}

	public void setHasFee(String hasFee) {
		this.hasFee = hasFee;
	}
	
	@Length(min=0, max=10, message="商户费率长度必须介于 0 和 10 之间")
	public String getMchFee() {
		return mchFee;
	}

	public void setMchFee(String mchFee) {
		this.mchFee = mchFee;
	}
	
	@Length(min=0, max=10, message="提现手续费长度必须介于 0 和 10 之间")
	public String getSyncAmt() {
		return syncAmt;
	}

	public void setSyncAmt(String syncAmt) {
		this.syncAmt = syncAmt;
	}

	public String getCreateStart() {
		return createStart;
	}

	public void setCreateStart(String createStart) {
		this.createStart = createStart;
	}

	public String getCreateEnd() {
		return createEnd;
	}

	public void setCreateEnd(String createEnd) {
		this.createEnd = createEnd;
	}
	
}